<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('record/index')}">所有记录</a></li>
        <li><a href="{:url('record/add')}">添加记录</a></li>
    </ul>
    <form class=" well form-inline margin-top-20" action="{:url('record/index')}" method="get">
        记录名称:
        <input type="text" name="name" class="form-control" style="" value="{$Request.param.name}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('record/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>学生姓名</th>
                <th>学生原因</th>
                <th>学生积分</th>
                <th>积分截图</th>
                <th>操作员账号</th>
                <th>创建时间</th>
                <th width="160">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <foreach name="record" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.student_name}</td>
                    <td>{$vo.reason_name}</td>
                    <td>{$vo.score_name}</td>
                    <td>
                        <if $vo.image != ''>
                        <img src="/upload/{$vo.image}" width="50px" height="50px">
                        <else />
                        暂无
                        </if>
                    </td>
                    <td readonly="true">{$vo.user_name}</td>
                    <td>{$vo.create_time}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('record/edit',array('id'=>$vo['id']))}">编辑</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('record/delete',array('id'=>$vo['id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
        </table>
    <div class="pagination">{$page}</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>